/*******************************
  * class characterset 
  *
  * created by dirkcai
  *****************************/

#ifndef CHARACTERSET_H
#define CHARACTERSET_H

#include <string>
using namespace std;

#if 0
#define CHARACTERSETSSTD

namespace CharacterSetsSTD
{
	const char * UTF8 = "UTF-8";
	const char * ASCII = "ASII//TRANSLIT";
	const char * GBK = "GBK";
	const char * GB2312 = "gb2312";
	const char * ISO88592 = "ISO88592";
};

#endif
class Buffer;
class CharacterSetTransform
{

public:

	static int Transform( char * psSrc, size_t srcLen, const char* eSrcSet,
		   	char * psDest, size_t & destLen,  const char * eDestSet );

	static int Transform( Buffer * ptInBuf, const char * eIn, Buffer * ptOutBuf, const char * eOut );

private:
	CharacterSetTransform(){};

};


#endif
